<script>
export default {
  name: "FirstPage",
  data(){
    return{
      getObj:null,
    }
  },
  mounted() {
    //接收信息
    this.$EventBus.$on('expGet',(e)=>{
      this.getObj = JSON.parse(JSON.stringify(e));
    })
  },
  methods:{
    //发送信息
    expSend(){
      window.bound.vueCallWpf({
        v1:'vueCalling',
        v2:3
      })
    },
  }
}
</script>

<template>
  <div class="fp-all-container">
    <div class="head-container">
      <h3>仅需4步，定制您的专属旅行方案</h3>
    </div>
    <div class="content-container">
      <div class="block-1 my-block">
        <img src="@/assets/1.png">
        <h4>第一步-选择目标城市、酒店和旅行时间</h4>
      </div>
      <div class="block-2 my-block">
        <img src="@/assets/2.png">
        <h4>第二步-查看或搜索当前城市的旅行咨询，设置想去</h4>
      </div>
      <div class="block-3 my-block">
        <img src="@/assets/3.png">
        <h4>第三步-检查和编辑旅行计划和旅行目标</h4>
      </div>
      <div class="block-4 my-block">
        <img src="@/assets/4.png">
        <h4>第四步-一键个性定制旅行方案</h4>
      </div>
    </div>
  </div>
</template>

<style scoped>
  .fp-all-container{
    width: 100%;
    height: 100%;
  }
  .head-container{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .content-container{
    position: absolute;
    bottom: 12px;
    left: 10px;
    right: 10px;
    top: 50px;
  }
  .block-1{
    position: absolute;
    left: 0;
    top: 0;
  }
  .block-2{
    position: absolute;
    right: 0;
    top: 0;
  }
  .block-3{
    position: absolute;
    left: 0;
    bottom: 0;
  }
  .block-4{
    position: absolute;
    right: 0;
    bottom: 0;
  }
  .my-block{
    width: 49%;
    height: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    animation: jumpIn 1.4s 1;
  }
  .my-block img{
    height: 80%;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  }
  @keyframes jumpIn {
    0%{
      transform: translateY(50%);
      opacity: 0;
    }
    100%{
      transform: translateY(0);
      opacity: 1;
    }
  }
</style>